/*    This file is part of nit.
 *
 *    Nit is free software: you can redistribute it and/or modify
 *    it under the terms of the GNU Lesser General Public License as published by
 *    the Free Software Foundation, either version 3 of the License, or
 *    (at your option) any later version.
 *
 *    Nit is distributed in the hope that it will be useful,
 *    but WITHOUT ANY WARRANTY; without even the implied warranty of
 *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *    GNU Lesser General Public License for more details.
 *
 *    You should have received a copy of the GNU Lesser General Public License
 *    along with nit.  If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef INDEX_H
#define INDEX_H

#include "list.h"
#include "map.h"

typedef Map Index;

Nit_error
index_init(Index *index, int bin_pos);

Nit_error
index_add(Index *index, Set *keys, void *dat);

int
index_get(const Index *index, uint32_t key_len, const void *key, List **val);

#endif
